package com.hongye.common.exception;

/**
 * @author fyd
 * @email 2104371759@qq.com
 * @date 2022/4/13
 * @time 10:59
 */
public class UserException extends RuntimeException {

    private Integer code;
    private String message;

    public UserException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public UserException() {
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
